Cleaning rests of merge