Fix TraceIsActive