Avoiding tab triggers twice