fix bad end tag