- fix bug in saving