Fixes issue with search page from PR 713