fix a bug of config