Partially fixed issue with mime type