Fixed active tab close issue.