Fix argument checking, a task number can have multiple digits.