Logic typo and bug fix

If we can find values from args, we will not find from envs;

And we can't get value from args and envs, we should set value to () rather than (None,)