fix json parsing issue