Fixed undefined variable error

%s/event/e/