Fixed a bug in config parsing