Fix leaks of changing name theory.