compass bug fix