Fix tab removing issue.