Fix the tab not changing