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

#17