some fixes.. bug in compass