Unregister the correct event.