fixing fetch of mime type