fixed query issue.