Fixed a variable and a function that changed names.