Fixing quadratic bezier curves