bug fix in error output