Ah, so it’s not that it was broken, it’s just that I was misunderstanding! Happens a lot in my life!
That’s so weird that it works with debug but not in release! You did well to find that workaround.