fix output error message;