coverity: fixed issue argument cannot be negative