Fix paragraph-in-header bug