Fix bearing calculation (evaluated 0 to false)