Unregister the correct event