Firebase bug help

Hi guys, I would like your help.

I found a very weird bug in Kodular, I wanted to know if you already knew about this bug and if so, how did you do it to help, if not, I wanted your help to solve it.

I’m working with Firebase, basically I need to get information from it. Below contains an image with the application emulated in the campanion where it returns the value 2704, the one I want and the code is correct (I believe) the other image is the same code, only now compiled. Note that firebase brought the entire list, not just the index 1 I want.