fixed some bugs in the report