fix issue with building config from json file