Fixes overflowing.

If not enough space was available, the tab text overflew.