I had that when I used a heater that was too powerful for the size of the tank. By the time the thermostat registered the temperature rise the heater was going full whack and continued heating the water to a much higher temperature due to residue heat. I replaced it with a less powerful but otherwise identical heater and had no such problems.