It's me again. I'm making a game like Gnat Attack from Mario Paint except you hit fairies instead of flies

The problem is that I got the code to make flash spawn multiple fairies but it keeps overwriting them because they're at the same depth. So I used _root.getNextHighestDeph and all that did was break the spawn and have one fairy teleport to random places while another spawns on the top left unable to be affected by the hit check triggered by the fly swatter

Code:
setInterval(SpawnFairy, 2000);

function SpawnFairy() {
	
	attachMovie("Fairy", "Fairy", _root.getNextHighestDepth());
	Fairy._x = random(1024);
	Fairy._y = random(768); 
}
This is the code I have down right now. Is there anything I'm doing wrong?