Fix document version delete