fix bug of tab