fix global variable leak
1.3.1