fix swapped heading/rotation