Update events.php

Small bug fix