fixed bug reading proxy