Fix mutation bug from nsuserdefaults