fix bad param pass