correct calculation of wind direction