fix some tab related stuff.