fix bug in weather adapter