修复事件注册

Signed-off-by: Gaubee <GaubeeBangeel@gmail.com>