Correctly set a static variable.