Bug fix tracecurve