fix reference to missing DOM element