fixed issue selecting top level tags