fix compass problem