Image alignment bug

In a title page with the same image at top and bottom, one compiles properly, but the other is pushed to the right and half is unseen. Below are screenshots of the title page in Editor, the replacements I use for images (they work!), and the compiled result.

title page.jpg

replacement rules.jpg

compiled PDF.jpg

I disabled the last Replacement in the list, and the problem went away.

I can’t imagine why it would affect one paragraph and not the other, but I don’t remember what it was supposed to do, anyway!