* Fix fatal error when there is only one tab.