Preventing mold in washing machines