fix some bugs in tabbarcontroller