minor fix to check the args length not the object itself