Fixed LifeCycleEvent type hin in onFlush.