fixed araqne/issue#928. fixed StreamQuery & ScheduledQuery