fix targetElement refs