fix bug in event save