Fix query when looking for custom queries. I was iterating over a word instead of an array of keywords.