Fix the tab behavior