fix mode for update script