Fixed add event error