small fix for json parsing.