Fixed a bug in media type parser