fixed problem with data in custom templates - retrocompatibility with custom_infowindow.html