Merge final states