Bug fix while creating sub paragraphs