Fix link count updating for tags