fixed agents escaping