fixed polygon finishing bug