[medium/bug] fixed couple issues in agent proxy support