fixed the media type merge