Fix MIME type check.