fix avg in polygon shade