Fixing bug in 10fold script