fixed error where report ids were being mixed up in csv download