fixing some spawning errors
fixes some spawning issues