fixed error in weather class