correcting error status