fix problem with compass