(#656) - fix loosing deletion of document