Fixed searching by categories

Should be good to go for searching now