fixed save to bug