more bug fixes for ROIs