Some fixes for tabs.