fixed crash when switching scenes