bug fix for moisture