How to fix numbering with subpar and i-figured

Reference this issue:

And the code in issue:

#import "@preview/subpar:0.2.2"
// import the package
#import "@preview/i-figured:0.2.4"
#set page(height: auto)

// make sure you have some heading numbering set
#set heading(numbering: "1.")

// apply the show rules (these can be customized)
#show heading: i-figured.reset-counters
#show figure: i-figured.show-figure

= First
#subpar.grid(
  figure([A], caption: [
   A
  ]), <a>,
  figure([B], caption: [
   B
  ]), <b>,
  columns: (1fr, 1fr),
  caption: [A and B.]
)

We get unwanted numbering for sub figures(the number should be a, and b, but we get b and d).


I have also checked that use i-figured only will also have the problem:

#import "@preview/i-figured:0.2.4"
#set page(height: auto)

#set heading(numbering: "1.")

#show heading: i-figured.reset-counters
#show figure: i-figured.show-figure


= Ch1

#figure(
  grid(
    columns: 2,
    figure([#lorem(8)], caption: "(a)", numbering: none),
    figure([#lorem(8)], caption: "(b)", numbering: none)
  ),
  caption: ["Figure with two sub-figures"]
)

The output:

The desired output should be something like this(Please ignore the Figure 1 mismatch):