fixed bug in quadtree