Fixed bug where tab-labels were ignored