fix bug for tag