fixed bug for tabindex - wrong var