sounds like your limit switch is wired up backwards.