[FIX]Fixed traceback for report query..