Fixing update script