fixed a bug in config management