bug fixed in _addEvents