Fixed "map" function.