Fix a bug of s:resolve_pattern_dictionary().