Fixed bugs in tabs control