Fixed preferred_media_types bug with get_types