FIX generation of cross-validation indices.