Bugfix for computing center heading when left heading has greater value than right.