fixed a bug on dependant arg check