getTerm, queryClass: fix default value