problem with Cookie in JQuery UI Tabs

problem with Cookie in JQuery UI Tabs


Hi
I use this code to add tabs with cookies enabled
        $("#tabs").tabs({fx:{height:'toggle',duration:'fast'},selected:0});
        $('#tabs').tabs('option', 'cookie', { expires: 30 });
but when I use the second line , all tabs get disabled except one.
- what's wrong ?
- also if I use only the first line without "selected" option , the
secont tab always is selected tab , why ?