fix compass bug