little fix for events.php