You have the power cords for your motor and light reversed. Follow the wire from the motor until you find a two plug outlet like the end of an old extension cord. One socket is for the motor the other for the light. Switch the two plugs and every thing should run fine.