Fixed a counting error and tune the proactive search interval.