Fix broken csv export