Proxy mem leak fix