In renderer-manager.ts:173-178, the swapRenderers method swaps local parameter references instead of actual object references. The caller's variables are never modified. This method either needs to operate on class members directly or be redesigned to return the swapped pair.