Fix change group_id and location bugs