Reorder delete sequence (fixes issue #4)