fixed minor bugs in exporting