fix bug that was undercounting RIs purchased