My attic has a small finished room with no electrical outlets . It does have an overhead light that is on a switch . After shutting off the power I installed a junction box and a separate outlet . I wired in the everything in the correct manner but the outlet only works when the switch is in the off position . What have I done wrong ? Wracking my brain on this one .