fix crash problems and update the openweathermap URLs