Fix upload script