fix an error for weather class