fixed multiple-save problem