bug fix for hash grid indexing