Fix compilation error caused by name shadowing.