bug fix with JSON parsing problem