fix for json parsing