convert map to unordered_map
Minor bug fix