`replace "|" "$verticalBar()"` doesn't work with `gotoline 1`

I've got a sources script where replace "|" "$verticalBar()" is being used in the [ParserScriptAlbum] section, however each time gotoline 1 is called, further occurrences of | have not been replaced (as seen by the debug.out). After a gotoline, using another replace will replace |s until gotoline is encountered again.

The solution for me was to use gotochar 1 instead (which achieves the same since the script is using joinuntil to make the XML into a single line): all |s are replaced.

Is this a bug?