Debugged cross validation