Solve overlapping elements