Fixed bug in json