quadtree crash fix