Resize links fix

Wasn't replacing the correct node.