fix cross validation