fixed an issue in params handling
fixed naming issue