bug fix in error reporter