Restore proper tab type on state change.