fix a bug in config