bug in update script 2