Sounds like a loose connection. check the wiring.