fixed a bug with the dynamic file naming for the export file