Fix replace arguments.