Fix bug in path to json