Fixed a bug in read config.