Make sure that the pump motor is bonded. There should be a #8 solid copper wire attached to the outside of the motor and also attached to any heater and control system or timer. I spent 15 years as a pool service tech and have seen people skip this during pump replacements many many times.