fix error report bug