Fixed a bug in FoldOrder where order=0.