Fix a bug in config