fixing bug in reports: nullPointer