fix inventory spawning