storage: fix fold_resource1 accumulation