fixed bug for release the data in event manager