BUG: Fix tab state not being restored due to incorrect selector.

Closes #2321.