Fix invalid heading tag closing