update script bugfix