bug fixed: select tabs with index in RTL and LTR direction