Fix bug with setting tab name