Octree key fix

Updated Pull Request #454