fixed JSON creation issue