Fix crash and add humidity and precipitation to weather model.