Fixed bug while exporting attendance data