Fix replace form.
Code quality.