Fixed example code for fetchEvent