fixing replace directive.