fixed add event error