slight fixes to the export selection functionality