Correctly rename all references to variable.