fix the error caused in report refactor