fix bug and report generate