fixed add event bug