handle undefined in merge list