fix compass compile