bug fix in loading of query extension