Fixed bug in searchWithoutUpdate