Fixed issue with forgetting selected tab on re-render.