fixed bug in 10 folds