fix for spawnPrevention variables not working as intended