Small fix on addTab