Fixed writing words to infowindow