Fixed bug in report exporting