OK, never mind. I figured it out. I created another variable that stores information about which scene is currently loaded. Then I check value of that variable (with “IF”) before executing load/unload function so if scene is loaded the algorithm prevents from loading the same .gltf again (which was causing the issue). :)
Damn, it’s so easy only with puzzles and a bit of brain :)