last dictionary entry fix