Fix weatherProvider's bugs