Fixes bug that displayed "null" for some search results