Make sure all objects are fully initialized before calling onsceneloaded.