Added a scene == null check, to avoid possible crashes