fixed bug in tab pane when switching languages