fixed the number of leaks