fix multiple proxy instance bug