Fixed runtime bug when selecting Settings tab.