Fix handling of cross-validation in GLAB