Fixed a bug with multi-word queries.