Fix input params type checking.
Fix input params type checking.