fixed "modified event_map reference instead of copying it"