fixed the missing variable for the DOM element