some fix for mag heading