fix: array not processed correctly. 'map' uses the block return value as the new value for element, should use 'each' instead.