Programming the end waypoint for an offset segment of a flight is usually "interesting" in the FMS, with different waypoint then displayed in the box to the one either selected or "typed" in.
At the end of an offset to the right (by 2 miles for example), the plane turns left to get back on track but then continues left in a full circle!
Has happened multiple times!