bugfix in update-sript