Fixed some problems with the new CSV export plugin