Update inner_fold