Fix for the multi-second bug in folding.