fix proxy server bugs