fixed #396: numerics in constant arc length discretization