fix the mime type error bug