Violation of the order of paragraphs fixed in getReplacementNodes