correct an error