fix bug for error report