fixed bug in modify-then-delete sequence