fixed wrong formatting of json data