Fix: map instead of each

Original 3135 is wrong, each is used instead of map.