Fix the empty-result search problem.

Closes #55