it should be bare is neutral, red is hot, black is ground. the hot should be switched, the ground and neutral constant. split the red before the switch, and split the black and the bare. the light may have no provision for neutral grounding, in which case, send the red (switched) and black to the light, only. Send the other switched red, the other black and the other bare to the fan.