bug fix for multiple words query