Fix bug when opening infowindow with flat details