fixing a bug with non-recognized mimetypes