Event: Fix Coverity error

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>