Fixing compass problem