remove clones with deletions due to template switching