fix variable init leading to crash on teardown
fix variable init leading to crash on teardown

rampantpixels/foundation_lib,rampantpixels/foundation_lib,rampantpixels/foundation_lib,rampantpixels/foundation_lib