export: fixed a bug where exporting to tab format with a header would not export the first line of data