small fix to hash map