Fix bug in polygon listeners