Export of selected records did not work