Fixed undeclared variables in event_create action