fixed issue when a tab is no initially set as active, closes #3