The loco just seems to bug out sometimes and turn itself around on it's own. It'll go from pulling the carts to going over a lockdown track (or maybe just 'cause it's been hard to lock down a reason) to flipping around and start pushing the carts.
Ok, Right clicking with the omni-wrench...