Minor json parsing bug fix