Fixed bug in json load