Fixed a conditions bug in the search query
Fixed a slug bug.