Fixed an error updating the quadtree as nodes are added