fix keeping saved value up to date