Fixed error with overlapping contacts