Corrects formatting for dicts.