fixed the bug in the with_error message