fix folding