IPad app error grounds dozens of flights