What's up here?

I was playing around yesterday checking a few airports and noticed this pattern out of Charlotte. It appears the aircraft took off, made a right turn, and then began a series of long loops eventually returning to the airport. But then it seems to take its regular flight path as if nothing happened.
Bad data? Or did this really happen?
https://photos.flightaware.com/photos/retriever/6a53c7d4dbc6e9bbc0a2bbeebbb16b64f14c5350https://photos.flightaware.com/photos/retriever/d542fc6c143d79507a9c9c1866ba1441281cebad

Look like data from an arriving aircraft and departing aircraft got commingled.