Fix function names when renaming.