Fixed the tab not working bug