Bugfix for update script