Fixed tab rendering bug