credit restoration after errors