Removing a spurious end tag