Search and Replace mask not aligned

I have executed the sample search and replace text. If there are more than 1 replacement on the same line, the second replacement gets shifted by the mask (rectangle) surrounding the text. Is there any way we can limit the replacements shifting ?

@george.soto,

Thanks for contacting support.

Can you please share the input PDF file causing this problem and the code snippet which you are using, so that we can test the scenario in our environment. We are sorry for this inconvenience.