fixed multiple agent dearch errors