fixed scene switching crash