Event preventDefault fix