Finish making ids in each dialog unique.