fixed an error in config parser