Grafana error gauge result 0

I’m having a problem trying to use the granafa gauge visualization. The issue is: When the gauge receives 0 as return of the databank, it will give me the "Cannot read properly the length of ‘undefined’ ", and if it receives a value of 1 or above it will work as usual, and if i try the same thing on the singlestat visualization it will return me the 0 as it is supposed to do.

the query i used is as simple as: select 0