Fixed so that it shouldn't ever return blank results again. Especially on small searches.

Fixed the counting problem that was causing blank returns on occasion.