Fixed timeout problem on agent_client