Fix misnamed `event` variable.