Fixes the following issues: * Clicking on search results gives an error * Search not working with default category