commit a failed code