Fix pointers for linked elements.