Fix bug: query incorrect.