fix refs on dom components