i just stumbled over this and it looked a lot like being a copy-paste error from the above doScheduleInsert to me. i think only insert should ever lead to re-attach a document, everything else would more likely hide a programming error than be of any real value. if you think we need further discussion, i can take that out of this PR again so we can fix the actual issue and then discuss.