fixed copy/save bug