fix saving setting data error issue