This is from the Aviation Week website, regarding the Miami incident in 1999...
In May 1999, another American A300-600 experienced multiple rudder deflections while on final approach to Miami, but landed without incident. A probe revealed that the autopilot's wiring had been cross-connected by American mechanics in Tulsa.
I wonder if a cross-connected autopilot had anything to do with the most recent Peru incident?