Fixes compass race condition