Always update the group id, it might change based on the query.