correct merge heads