fix bug Setting not saved