Fixed global leak

#15