fix argument type & remove warning