Turn off the power at the electrical panel and drain the water level below the lower element before replacing it.