bugfix in update-script