Fixed export of users to CSV file