Fix bug check mime type