Fixing reference scope issue

Signed-off-by: Joe Buck <jbbuck@gmail.com>