Fixed renaming.
Fixed variable name typo.