fixing mouseOutPolygon function