Forgot to swap the parameter when calculating a final bearing