#10 bezier calculation fix