fix npe queryID