Draft: small bugfix in smoothBezCurve