Fixed the auto param detect code
Fixed the auto param detect code