VID-605 Use the right replacement method.

Needed to remove the 'parsemag' option.