some fix for using unordered_map