Fix bad variable name

Error logging on Heroku