fix where to read records from when exporting