fixed segfault on new scene