Fix potential core issue in proxy.