Added deep clone to QueryBuilder