Fix indexing/slicing in overlappingComponents