Search bar working fine with or without category item selected