fixed notfound event listener