bugfix in json logging