Make sure all objects are fully initialized before calling onsceneloaded...

....
Object.keys().length