* Fix fatal error when there is only one tab.
Merge pull request #1 from audreyt/master

* Fix fatal error when there is only one tab.