[FIX] global var leaks