Fixed a non static reference

Just something I found while hacking around 2.3.
Merge pull request #2531 from wshatch/patch-2

Fixed a non static reference