fixed a bug of save event