Fixing bug when there were no results