fix issue when inputParams is null