replace_params fix/facto

Signed-off-by: Arnaud Richard <a.richard@webshell.io>