Fixed the update script