Fix compass heading wrap issue