Fixed bug in bearing calculation