fix defect - CID 84869:  Argument cannot be negative  (NEGATIVE_RETURNS)