Take common ancestor when mergine blocks