Fix of media type bug