Fix Shadow crash issue during SceneOff