fixed erroneous arg check on fold