Fix minor bugs json bugs.