fixed report query issue.