fix crash from TypeError in compass support