Fix tag ownership check.