finish nilFlush; fix HeartbeatEventType