fixed checking for args.fold