fix circle cut logic