fixed bug in removeListener event that caused an event to be called after it had been removed from the _events object