fixed bug with populating the hash map for chunks