Fix smart tabs