prevent edits from being deleted

before they are put into a queue, that was causing segfault