Fix a typo (UnreigsterEvent to UnregisterEvent)