bugfix in update script