fixing bug of config parser