fix for the update script