Fixed bug on fold skipping.