fix in error printing.