fix bug for tab can't expand correctly.