fixed weatherapi

fixed some bugs in weather api