fix wrong place event.preventDefault