Fix tabindex condition