Fixes crash on scene reload