fixed bug to allow rois to index properly