fix bug for reading >10 rois