fixed save bug