fix bug in config