Fixed a nontrivial bug

(GCC vs VC): unordered_map[key] =  unordered_map.size();