tab state bug fix