fix npe in query system