display object became nil when i get back to previous scene composer

hey i have a problem with composer scene 
i have to scene and i want to navigate between them 

when i go to another scene i’m deleting  the previous scene to prevent it from saving it’s state 

and that work for me but then i’m getting exception on one of my display object one inserting it into scenegroup  saying that display object is nil

any idea how to solve this
thanks 

Hi @t.haddad,

Please post some code or an error message, including the line number (if possible) that it references. The community and staff will be able to assist you better with more information.

Take care,

Brent

Hi @t.haddad,

Please post some code or an error message, including the line number (if possible) that it references. The community and staff will be able to assist you better with more information.

Take care,

Brent