fixing strict MIME type checking