Use -doNext: instead of -flattenMap: