fix error in the update script