Fix globals leak.