fix indices for risk curve plots with vert ci