Update state of prior submission when deleting. Fixes #1721