fixing bugs in leak finder.