Merge maps with the same mapid

Thanks. It worked great.