Renamed a variable, fixed a typo.