Fixed switch scenes bug