fixing create event error