fix mac uploading