Remove global variable leakage.