Fix items not spawning.

fixes #4759