Glitchy HitTest Script

Hey peoples,

I’m building a game and I keep having glitches when using 2 of these scripts in the same frame(Doesn’t matter which layer):

onEnterFrame = function () {
	if (survivor.hitTest(door) && coinsNeeded == 3) {
		gotoAndStop("room9");
	}
};

The second script I type keeps not working at all.
Even when the hittest is different like door2, door3, and the GoTo.
And yes if there’s 2 doors I change the instance name of the door as well, this glitch is purely Flash based.
Could anyone explain this or help me out?