fix for stacked heading tags