fixed folds error