Fix typo errors and change in variable names.