Fix triangle tracing