fixed nil index error in tabbutton:initialize