fix global leak

just fixing a global leak