fix the dictionary