fixing #412, wrong offsets cause supoptimal routes with via points
fixing #412, wrong offsets cause supoptimal routes with via points