Fixed bug with setting category from search