Fixed args check bug