fixed the wrong value save