Fixed 64 bit problem in octree