Fix regression in Events.map().