fix copy typo on event.php and get index events by end date