Fix bug: support empty results.