Fixed a bug in which the number of results was being displayed on error.