Hydrominder problem

I had a hydrominder problem sometime yesterday.  I also ran through all the chemical.  When I showed up today water was coming out of the holding tank.  The hydrominder valve would not seat correctly?  Water would come out when the magnetic was not even on it.  The first fix was to replace the valve.  It worked fine then it over flowed again.  Then I used the old valve and replaced the valve body.  The old valve body looked fine but the new valve body made everything work and did not over flow when I was there.