fixed bug in json