The unusual move happened on an American Airlines flight