Chrome did not like `replace` with a global parameter.

Fixed.