bugfix in compass.py filter