Fix csv/pdf export