Fix bug in events page