Widgets don't work properly when returning to a scene

I’ve made two storyboard scenes, there is a button in each one, button1 in first scene transits me to the second scene and button1 in the second scene sends me back to first scene. both buttons are defined in createScene event and inserted to a display group which is self.view, and other three events are empty for both scenes.

its okey. but when I move to scene2 from scene1 for the first time, and then comeback to scene1, then if I click any button and get its event id, it returns nil.

what should I do? what is the problem?

Can you post your code?

Can you post your code?