fix the bug report redirect and flash msg