fixed double json parsing