Ground wires shouldn't affect the operation of a circuit. Ground wires are usually bare copper. Neutral wires have white insulation. White wires can be used in a switch circuit but have to be marked black. Knowing this, does anything change with the way you described the problem?