(#2779) - fix undeletion with wrong rev