Fixed a bug in reading configurations.