Fixed leaks