Fixed octree issues