Electric Water Heater Wiring

The bare would be the ground, not the white. Grounding conductors need to follow the color convention required by Article 250.