Fix config parsing