fix problem with QueryBuilder