Fix boldface tag balancing.