Fixing bug in pull request for Fixes Issue #295

This is just to fix a variable name bug in a previous pull request for Issue #295