Fix bugs in infowindow.