Group being declared by API as FRAME

Hi Figma team,

i think i spotted a bug, i’m attaching a file :

the layer “test-group” is a group and nodenode.type returns FRAME for this.
It’s quite random, by playing around and toggling between FRAME and GROUP, i’ve seen the bug disapear then reappear, hopefully, you can reproduce it.

I couldn’t find my Figma version (i’m using the desktop version on windows),
i think it’s fairly recent, i remember updating about 2 weeks ago,
let me know how to find it if you need the precise version number.

Best

In case this cannot be solved,
i’d like to know if there is another way for me to know if a node is a frame or a group.

the reason I need to differenciate them is because of the special behaviour of group where a group’s children’s coordinates aren’t substracted from their (group) parent’s position.

Any work-around that let me know this info reliably would be welcome.
Thanks