Fix: map instead of each
Merge pull request #46 from fabn/fix-3135

Fix: map instead of each