fixing bug in exporting users to csv. was always exporting all users instead of chosen subset