fix bug with heading immediately following list item