fix bug of save