Fix eventtarget check