fixed segfault when selecting object in scene view