fixed error on reports/index caused by nil class, made piechart based on filtered results