Fixed bug where editing after a failure also fails.