avoid checking whether tag is select twice