Fix bug in dictionary.