fixed runtime errors in airfoil-tracing algorithm