solve issue with merge multiples heads