Fixed bug in usage of unordered_map