Save values when there is an error