If your machine is filling with water when switched off then one of you valves has worn and is not closing correctly.
eBay