Fix incorrect sample upon delete.