bug in update script