Fix highlighting clearing issue for overlapping nodes