Geometry nodes not showing behind transmission in cycles

Hi,

I’m having some trouble with a scene where I’m using geometry nodes to create a sugar coated candy (From blender guru’s tutorial), and putting the candy inside of a candy bag. I’ve used these candies for a while and they’ve been working great. But now I want to put them inside of a candy bag, and the sugar just dissapears when it’s inside. For the bag I’m just using a transmission map plugged into a principlied BSDF

Does anyone have any ideas on why this is happening? Grateful for any help I can get!

Using Blender 4.3.1 with Cycles. Let me know if any additional info is needed.

Figured it out. It was the material of the sugar cubes that had Ray depth as Fac of the mixed principled bsdf and transparent bsdf.