fix TAG pattern issue