Fixes infinite pSpawn loop