fix performance problem of extrag_tags