Fix for not adding tab if there are less than 7 tabs

Fixes #17