fixing the spawn mechanics