minor bug fix to page_events example