handle unfriendly end tags