fix bug in dictionarycomparer