bugfix: error on mime type detect fail.