Ensured that the scene's visible when calling visit() to avoid black screens.