Fix bug for param_add