Both unaccompanied children had boarded in the Dominican Republic. The other child was carrying Andy's passport.

Martinez had flown with her son to the Dominican Republic July 28 and came back after a week, leaving the boy with family. She bought him a ticket to return in the middle of August, and paid extra for a JetBlue employee to get the boy safely onto the plane.

JetBlue is reviewing how the mix-up occurred. It says once it realized the mistake, it quickly got the children to their correct destinations.

"While the children were always under the care and supervision of JetBlue crewmembers, we realize this situation was distressing for the families," the airline said in a statement. "In addition to extending our apologies, we refunded the flights and offered the families credit towards future JetBlue flights. We are also reviewing the incident with our leadership and Santiago airport team to prevent similar situations from occurring in the future."