The Ground Track that is being displayed comes straight from the GPS receiver. I've seen this issue before when the GPS is reporting incorrect information, or it's configured in a non-standard way (like it's providing Magnetic data instead of True).
Are you using an ADSB device or external GPS, or is this from the devices internal GPS?