Fixed a bug in configuration read.