BUG: unreferenced variable.
Merge pull request #1256 from dwf/fix_unreferenced_variable

BUG: unreferenced variable.