fixed critical bug in isTag