fix bug for proxy