Fixing typo that caused error when listening to events.