fix removal of paragraphs