fix a the bug in compass mx