fix trace activity from #6133