Fixed modify setting file have no effect

And this fix resolve #313