Bugfix in ostabs dispatchEvent(), case of tab open not at the end, his index is in a data, not index in panels. Comparaison with selected fails