fix error reporter