There are three black wires, three white wires, three ground wires, and one red wire, all of which are from the supply cirucit. Currently, I capped the black wires, connected the red wire to the black from the light fixture, the white wires to the white from the light fixture, and the ground to ground. However, only one light switch turned the light on. What am I doing wrong?
