Fixed typo in dictionary name in to_dict