Refactoring
Fix a bug when reading default settings.