fixed the compass error