Your issue here is that it's spawning objects while you can't see the layout. Is this right? The game will run events for all layouts even if you're on a different layout if the conditions are true, so events such as every X seconds will be running even when you can't see the layout.
Please explain what you would like to happen. A .capx or screenshot of the events would be good.
If you have set up an event that checks if you're on a given layout before triggering the sub-events then this should work. If it's not working as expected then it is set up incorrectly and we probably need to see how you have set up the events.