fix bugs in report