fix dictionaries