Issue in scatter map as an output of dash data table using active cell

I have a doubt. I am building a dash app with
1- inputs like 2 drop downs ,2 radio buttons , 1 date picker with start and end , and a submit button (nclicks)

2 - I use this to build a bar chart for volume and value (seperate ones)

3- then use click data feature of bar chart to create box plots

4- create data table as the second output by using (allow duplicate = true)

Everything works perfectly till here

5 now I am trying to visualize a scatter map box using active cell feature of the data table.

I am having issue with scatter map box where there are no errors

The map box also changes for first few rows of clicked cell.

But for some cell it just doesn’t show the correct scatter map box country . I am using latitude and longitude in float and also all zero division errors addressed.

I even set the index for the column and made sure active cell none conditions are addressed inside the def function

When I printed row id to debug I am seeing row id as empty for the ones where the scatter map box is not correct.

Would u know what might be going wrong here based on description