fix bug when we change the QueryBuilder before a executeSearch