fixed an issue with the last paragraphs at a cetain breakpoint