Fix a bug that setting file is not created when upgrade.