Google Maps Marker event


I have an entity having coordinates and I am looping this list to add a marker and event for each.
The event is click event which shows info window with address. I have the markers added to the map but the problem is that events are working only for few markers. When I click on few markers the info window is not shown. Please let me know If I am missing anything here. (Refer attached)