fixed bugs in tabbar