fix bug about wrong order of event text