fix: snap problem issued in #36

also fixes moveBoundary problem on first segment