Fix varname typo in trace code.