An iPad app glitch grounded several dozen American Airlines planes