fixed json parsing errors