fix reading config value