added deep clone for QueryBuilder