Fixed a bug with reading config values.