Fixed heading computation.