remove head collisions for merge