Fix memory bug in map union.