Hatch latch

Anyone ever had a problem with their hatch latch actuating by itself over and over to no stop, mines doing this and i cant seem to find the problem, ive changed it out with one from the other car and it still does it, could it be doing this because i dont have the switch for it hooked up (i doubt it though) all help appreciated