Fixes variable scope for hotswap stats.

Quick fix for scope on variable for hotswap stats. 

How did you find the time for this? At the Atlantic Road?