fix workflow to_dict