Changing a tab's caption (programmatically) has no effect until page refres

Hi All,
I am having a minor issue with Tabsheet.
When I change the caption of a tab programmatically, the change is affected in the inner component but not on the tabsheet itself.
It seems to be a minor bug.

Here’s how my application will look like if I click the button:

And here is my code:

import com.itmill.toolkit.Application;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.Panel;
import com.itmill.toolkit.ui.TabSheet;
import com.itmill.toolkit.ui.Window;
import com.itmill.toolkit.ui.Button.ClickEvent;
import com.itmill.toolkit.ui.Button.ClickListener;

public class TabProblemTestApplication extends Application
    Panel panel1;
    private Window mainWindow = new Window("Main Window");

    public void init()
        final TabSheet tabSheet = new TabSheet();

        panel1 = new Panel("tab 1");
        panel1.addComponent(new Label("This is first panel"));

        Button button = new Button("Enable/Disable Tabsheet");
        button.addListener(new ClickListener()
            public void buttonClick(ClickEvent event)
                tabSheet.setTabCaption(panel1, "This is a new caption");


Tested it and yup, could not even find a workaround to get the tab name changed. A refresh (F5) refreshes the tab caption. I remember someone mentioning this earlier but couldn’t find a ticket(open or closed) about this.

Created a ticket about this:

Cheers, mate.