Multiple Grafana iframes in same page swap panels


I’m getting an issue embedding some Grafana panels with iframe in the same page, when I close my app where the embedded panels are located and open it back show the same content randomly in all panels, when I refresh the page the content load fine. My app is in Rails 3.
Grafana is installed in a subdirectory of the main domain using reverse proxy.