fix query issue.