fixed a bug in make_report