Folium Map not rendering properly, OrderedDict mutated during iteration

Hi everyone !
Iā€™m new to streamlit and I have difficulties using streamlit coupled with Folium to render an interactive map.
I think the issue is with the way I add the markers and the markerCluster into the map, from the ā€˜mark_cardā€™ function, adding them in my main loop but I canā€™t seem to do it another way around.
Iā€™m using static_folium because it make things even worst when I use st_folium, which clearly indicates Iā€™m doing things wrong.
Iā€™ve got error messages from time to time that indicates OrderedDict mutated during iteration
Here is the link to my deployed app (sometimes the map does not render properly):
https://knroadplanning.streamlit.app/

And the link to my github:

Maybe Iā€™m not supposed to embed everything into a class ? I donā€™t know and Iā€™m kind of lost tbh

Let me know if you need me to provide a smaller version of the project with just the core of it.

Thanks a lot!