Fix for mimetype issue