Fix bug in compass warning.