fix refine merge_analysis