Remove duplicate "endunless" tags