Fix bug preventing --events from working