Remove duplicate "endunless"