fix crash on bad weather data