correcting error output