fixed save problem