fix bug enforcing range restrictions on segment usage count