fix metadata export to csv conversion