fix convex_y bug of iterator overshooting