Fix to upload script