You need to set the position for the newly spawned object.
To make it simple; instead of using the spawn function, use the Create object function
(Action: System -> General).
These two functions do the same thing, but with the "Create Object" action you can set position and layer to where the object should be created.