fix a bug where a failed validation would still modify the parent resource