fix bug in add newtab entry (doptable)