LPS-34263 fix bug when searching organizations in directory