fix bug for argument type nil.