Changed variable name to match argument

Let me know if you'd prefer a pull request on a different branch.