fix issue with paragraph duplication