fix content loss on failed section edit. closes #51