fixed spatialHashMap (again)