Yes see you have a faulty presumntion going on here. And that is that the userSetup is run after things get loaded. Well it isnt it get intialized early on in the gui loadup process. Anbd since the gui is still oading theres no point in having teh scene leaded because theres no gui to feedback from.
Put your commands inside a a eval deferred block that should take care of things as it will get RUN AFTER the scene is loaded.