solve bug mixing split and merge