fix missing return statement when determining argument type.