Fixed undefined variable error.
Merge pull request #35 from alexmansfield/master

Fixed undefined variable error.