fixed json parsing issue