When you specify cookies later on, the cookie value is saved.When the page is reloaded without specifying that cookies are to be used, the tabs don't know that they should set the tab to the cookie-based value.

So, if you are later on telling the tabs that you are using cookies, you may-well also have to set the current tab to that which is specified by the cookie value.