fix incorrect invalid value for event_handle, nil for 0.
It made an exception under some situations.