fixed bug that would crash the window when there were no results.