Fixed index error in openweather module