Remove extra end tag