fix searchCount check