fixes for wrong graph in the reports page