Fix the empty infowindow issue