fix global leakage

another catch :p