fixed error in the case when search cache not initialized