fixed bug that caused the compass to rotate backwards