fix heading names and levels