fixing nested paragraph headers. DEVELOPER-1073